package com.core.entities;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * The persistent class for the MENUGROUP_T database table.
 * 
 */
@Entity
@Table(name = "MENUGROUP_T", schema = "CORE")
public class MenugroupT implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "OBJECT_ID", unique = true, nullable = false, precision = 25)
	private long objectId;

	@Column(name = "DATE_CHANGED")
	private Date dateChanged;

	@Column(name = "DATE_CREATED")
	private Date dateCreated;

	@Column(name = "GROUP_CLASS")
	private String groupClass;

	@Column(name = "GROUP_ID")
	private String groupId;

	@Column(name = "MENUGROUP", nullable = false)
	private String menugroup;

	@Column(name = "ROW_CHANGED_BY")
	private String rowChangedBy;

	@Column(name = "ROW_CREATED_BY")
	private String rowCreatedBy;

	// bi-directional many-to-one association to MenuT
	@OneToMany(mappedBy = "menugroupT", fetch = FetchType.EAGER)
	private Set<MenuT> menuTs;

	public MenugroupT() {
	}

	public long getObjectId() {
		return objectId;
	}

	public void setObjectId(long objectId) {
		this.objectId = objectId;
	}

	public Date getDateChanged() {
		return dateChanged;
	}

	public void setDateChanged(Date dateChanged) {
		this.dateChanged = dateChanged;
	}

	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public String getGroupClass() {
		return groupClass;
	}

	public void setGroupClass(String groupClass) {
		this.groupClass = groupClass;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getMenugroup() {
		return menugroup;
	}

	public void setMenugroup(String menugroup) {
		this.menugroup = menugroup;
	}

	public String getRowChangedBy() {
		return rowChangedBy;
	}

	public void setRowChangedBy(String rowChangedBy) {
		this.rowChangedBy = rowChangedBy;
	}

	public String getRowCreatedBy() {
		return rowCreatedBy;
	}

	public void setRowCreatedBy(String rowCreatedBy) {
		this.rowCreatedBy = rowCreatedBy;
	}

	public Set<MenuT> getMenuTs() {
		return menuTs;
	}

	public void setMenuTs(Set<MenuT> menuTs) {
		this.menuTs = menuTs;
	}

}